package my.edu.model.User.service;

import com.baomidou.mybatisplus.extension.service.IService;
import my.edu.common.domain.PageDTO;
import my.edu.common.domain.PageVO;
import my.edu.model.User.entity.Role;
import my.edu.model.User.entity.VO.RoleVO;
import my.edu.model.User.entity.dto.RoleDTO;

import java.util.List;


public interface IRoleService extends IService<Role> {

    List<String> getRoleNameByUserId(Long id);

    PageVO<RoleVO> listVO(PageDTO page, String description, String name);

    void updateByDTO(RoleDTO roleDTO);

    void saveNew(RoleDTO roleDTO);

    void removeRole(Long id);

    RoleVO getVOone(Long id);

    List<Role> getRoleByUserId(Long id);
}
